package com.woniuxy.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.system.entity.PerformanceDepartment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 部门管理 Mapper 接口
 * </p>
 *
 * @author woniuxy
 * @since 2022-06-01
 */
@Mapper
public interface PerformanceDepartmentMapper extends BaseMapper<PerformanceDepartment> {
    Page<PerformanceDepartment> getAllPerformanceDepartment(@Param("page")IPage<PerformanceDepartment> page, @Param(Constants.WRAPPER)Wrapper<PerformanceDepartment> wrapper);

    Integer findUserByDId(Long id);

    List<PerformanceDepartment> findDepartmentTree();
}
